<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="css/bootstrap.css">
    <style>
        .box{
            background-color: pink;
        }
        .box-1{
            background-color: pink;
        }
        .box-2{
            background-color: skyblue;
        }
    </style>
</head>
<body>
    <div class="container box">
        <h1>bootstrap</h1>
    </div>
    <hr>
    <h1>栅格系统</h1>
    <div class="container">
        <div class="row">
            <div class="box-1 col-lg-6 col-xs-3 col-sm-8">123</div>
            <div class="box-2 col-lg-6 col-xs-9 col-sm-4">456</div>
        </div>
    </div>
    <h1>列偏移: 让两个相邻的列不相邻</h1>
    <div class="container">
        <div class="row">
            <div class="box-1 col-lg-6 col-xs-3 col-sm-8">123</div>
            <div class="box-2 col-lg-5 col-lg-offset-1 col-xs-9 col-sm-4">456</div>
        </div>
    </div>

    <h1>列嵌套</h1>
    <div class="container">
        <div class="row">
            <div class="box-1 col-lg-6 col-xs-3 col-sm-8">
                <div class="row">
                    <div class="col-lg-5" style="background-color: aqua;">111</div>
                    <div class="col-lg-7" style="background-color: blueviolet;">222</div>
                </div>
            </div>
            <div class="box-2 col-lg-6 col-xs-9 col-sm-4">456</div>
        </div>
    </div>

    <h1>列排序</h1>
    <div class="container">
        <div class="row">
            <!-- 
                col-lg-push-* 往右推多少
                col-lg-pull-* 往左拉多少
             -->
            <div class="box-1 col-lg-6 col-lg-push-6 col-xs-3 col-sm-8">123</div>
            <div class="box-2 col-lg-6 col-lg-pull-6 col-xs-9 col-sm-4">456</div>
        </div>
    </div>

    <script src="js/jquery.js"></script>
    <script src="js/bootstrap.js"></script>
</body>
</html>